liblockdep: Fix undefined symbol prandom_u32
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 20:09:19 +0000 (21:09 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 12 Jun 2017 15:24:30 +0000 (15:24 +0000)
commit0329aec2f13073e1705f17858c2ca84e1d26d799
treee172142b3c747e462184a1b869ad1ebf30f465c1
parentf0bf2455c2b018345601aa949e54945fd98948f7
liblockdep: Fix undefined symbol prandom_u32

__lock_pin_lock() now calls prandom_u32() which is not defined in
liblockdep.  __lock_pin_lock() and its caller lock_pin_lock() are dead
code in liblockdep, but we still need to provide a definition of
prandom_u32() in case lazy binding is disabled.

Fixes: e7904a28f533 ("locking/lockdep, sched/core: Implement a better ...")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-undefined-symbol-prandom_u32.patch
tools/lib/lockdep/lockdep.c